package com.h3c.ptability.entity;

import java.sql.Blob;
import javax.persistence.*;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtFileTemplate
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_file_template 实体
 * Version: 1.0
 */
@ApiModel(value="PtFileTemplate对象", description="")
@Table(name = "pt_file_template")
public class PtFileTemplate {

    @TableId
    @Column(name = "file_template_id")
    private String fileTemplateId;

    @Column(name = "app_id")
    private String appId;

    @Column(name = "template_name")
    private String templateName;

    @ApiModelProperty(value = "模板编码")
    @Column(name = "template_code")
    private String templateCode;

    @ApiModelProperty(value = "1 导入excel模板; 2导出excel模板;")
    @Column(name = "template_type")
    private Integer templateType;

    @ApiModelProperty(value = "从那一行开始解析数据")
    @Column(name = "start_row")
    private Integer startRow;

    @ApiModelProperty(value = "从那一列开始解析数据")
    @Column(name = "start_col")
    private Integer startCol;

    @ApiModelProperty(value = "需要解析多少列")
    @Column(name = "col_size")
    private Integer colSize;

    @ApiModelProperty(value = "每一列对应的json字段名")
    @Column(name = "field_content")
    private String fieldContent;

    @ApiModelProperty(value = "模板文件存储路径")
    @Column(name = "template_file_path")
    private String templateFilePath;

    private byte[] templateFile;

    private byte[] origTemplateFile;

    public String getFileTemplateId() {
        return fileTemplateId;
    }

    public void setFileTemplateId(String fileTemplateId) {
        this.fileTemplateId = fileTemplateId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public Integer getTemplateType() {
        return templateType;
    }

    public void setTemplateType(Integer templateType) {
        this.templateType = templateType;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setStartRow(Integer startRow) {
        this.startRow = startRow;
    }

    public Integer getStartCol() {
        return startCol;
    }

    public void setStartCol(Integer startCol) {
        this.startCol = startCol;
    }

    public Integer getColSize() {
        return colSize;
    }

    public void setColSize(Integer colSize) {
        this.colSize = colSize;
    }

    public String getFieldContent() {
        return fieldContent;
    }

    public void setFieldContent(String fieldContent) {
        this.fieldContent = fieldContent;
    }

    public String getTemplateFilePath() {
        return templateFilePath;
    }

    public void setTemplateFilePath(String templateFilePath) {
        this.templateFilePath = templateFilePath;
    }

    public byte[] getTemplateFile() {
        return templateFile;
    }
    public void setTemplateFile(byte[] templateFile) {
        this.templateFile = templateFile;
    }

    public byte[] getOrigTemplateFile() {
        return origTemplateFile;
    }
    public void setOrigTemplateFile(byte[] origTemplateFile) {
        this.origTemplateFile = origTemplateFile;
    }

    @Override
    public String toString() {
        return "PtFileTemplate{" +
                "fileTemplateId=" + fileTemplateId +
                ", appId=" + appId +
                ", templateName=" + templateName +
                ", templateCode=" + templateCode +
                ", templateType=" + templateType +
                ", startRow=" + startRow +
                ", startCol=" + startCol +
                ", colSize=" + colSize +
                ", fieldContent=" + fieldContent +
                ", templateFilePath=" + templateFilePath +
                ", templateFile=" + templateFile +
                ", origTemplateFile=" + origTemplateFile +
                "}";
    }
}
